﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace tracker.Models.Entities
{
    public class EImageList
    {

        public int ImageID { get; set; }
        public string name { get; set; }
        public bool status { get; set; }

        public static EImageList create(DataRow idr)
        {
            EImageList OImageList = new EImageList();
            if (idr["ImageID"] != DBNull.Value)
                OImageList.ImageID = (int)idr["ImageID"];
            if (idr["ImageName"] != DBNull.Value)
                OImageList.name = (string)idr["ImageName"];
            if (idr["Status"] != DBNull.Value)
                OImageList.status = (bool)idr["Status"];
            return OImageList;
        }
    }
}